package com.theaf.basemodule.common.dto.resource;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author:songwenke
 * @Description:用于权限查看和选择，别外两个映射，存储管理用户的功能选择状态和功能可选状态
 * @Date:create in 14:55 2018/1/17
 * @Modified By:
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AuthDTO {
    @ApiModelProperty("模块名称")
    private String moduelName;
    @ApiModelProperty("功能列表")
    private List<FunDTO> funs;
    @Data
    public class FunDTO{
        private Long funId;
        @ApiModelProperty("功能名称")
        private String funName;
        public FunDTO(Long funId,String funName){
            this.funId=funId;
            this.funName=funName;
        }
    }
}

